import request from '@/utils/request'

// 系统维护设置
export const getMaintenanceConfig = () => request.get('/api/system/maintenance')
export const updateMaintenanceConfig = data => request.put('/api/system/maintenance', data)

// 系统基础信息
export const getBasicConfig = () => request.get('/api/system/basic')
export const updateBasicConfig = data => request.put('/api/system/basic', data)

// 邮件配置
export const getMailConfig = () => request.get('/api/system/mail')
export const updateMailConfig = data => request.put('/api/system/mail', data)
export const testMailConfig = data => request.post('/api/system/mail/test', data)

// 短信配置
export const getSmsConfig = () => request.get('/api/system/sms')
export const updateSmsConfig = data => request.put('/api/system/sms', data)
export const testSmsConfig = data => request.post('/api/system/sms/test', data) 